package demo512;

import java.io.*;
import java.util.Scanner;

public class Test {
    public static  void saveFileData (String fileName) throws IOException {

        FileWriter fileWriter=new FileWriter(fileName);
        BufferedWriter bufferedWriter=new BufferedWriter(fileWriter);
        bufferedWriter.write(1);
        bufferedWriter.close();
    }
    public static void main(String[] args) throws IOException {
        Scanner scanner=new Scanner(System.in);
        String fileName=scanner.next();

        saveFileData(fileName);

        FileReader reader=new FileReader("1.txt");
        BufferedReader bufferedReader=new BufferedReader(reader);
        String  readerLine;
        while((readerLine=bufferedReader.readLine()) !=null){
            System.out.println(readerLine);
        }
    }
}
